import os,time,sys

result = os.fork()
print("outerside pid is:",result)

if result == 0:
    print("child process")
    time.sleep(60)
    print("child pid is:", os.getpid())
    print("child-parent pid is:", os.getppid())
else:
    #time.sleep(60)
    print("parent process")
    print("parent pid is:", os.getpid())
    sys.exit(0)
